<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>

<div class="sign-up-top">
	<div class="container" style="margin-top: 10px;">
		<div style="vertical-align:middle; font-size:28px;">
			<a href="${pageContext.request.contextPath}/home" style="text-decoration: none;">
					<img src="public/img/科协Logo.png" style="vertical-align:middle; height: 56px;"/>
					民航大数据
			</a>
			<div style="float: right; margin-top: 10px;">
				<h4>
					<c:if test="${empty sessionScope.user}">
						<a href="${pageContext.request.contextPath}/Login.jsp">登录</a>&nbsp;&nbsp;
						<a href="${pageContext.request.contextPath}/Register.jsp">注册</a>
					</c:if>
					<c:if test="${!empty sessionScope.user}">
						${sessionScope['user'].id}
						<a href="${pageContext.request.contextPath}/userServlet?method=quit">退出</a>
					</c:if>
					<c:if test="${sessionScope.user.id eq \"admin\"}">
						&nbsp;<a href="${pageContext.request.contextPath}/admin">管理界面</a>
					</c:if>
				</h4>
			</div>
		</div>
	</div>
</div>